import { IsNotEmpty, MaxLength } from 'class-validator';

export class CreateMenuDto {
  @MaxLength(50, { message: '名称不能超过50个字符' })
  @IsNotEmpty({ message: '名称不能为空' })
  name: string;

  icon: string;

  @IsNotEmpty({ message: '路径不能为空' })
  path: string;

  component: string;
  parent_id: number;
  sort: number;
  is_show: boolean;
}
